package com.liuyutao.dao;

import com.liuyutao.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface StudentMapper {
    List<Student> findAllStudents();
    Student findStudentById(@Param("id")int id);
    Student findStudentByName(@Param("name")String name);
    Student findStudentByNameAndAddress(String name,String address);
    void deleteStudentById(@Param("id")int id);
    void addStudent(Student student);
    void updateStudent(Student student);

}
